package com.taxi.driver.module.account.center;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.taxi.driver.R;
import com.taxi.driver.common.BaseActivity;

/**
 * 司机信息（可修改）
 */
public class DriverCenterActivity extends BaseActivity {

    DriverCenterFragment mDriverCenterFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_driver_center);
        if (mDriverCenterFragment == null)
            addFragment(R.id.fragment_container, DriverCenterFragment.newInstance());
    }

    @Override
    public void onAttachFragment(Fragment fragment) {
        super.onAttachFragment(fragment);
        if (fragment instanceof DriverCenterFragment) {
            mDriverCenterFragment = (DriverCenterFragment) fragment;
        }
    }

}
